package com.situ.day10;

import org.junit.Test;

public class Stu {
	private Integer id;
	private String name;
	
	
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "Stu [id=" + id + ", name=" + name + "]";
	}
	
	@Test
	public void test1(){
		Stu stu = new Stu();
		System.out.println(stu.getName());
		System.out.println(stu.getId());
		stu.setId(0);
		stu.setName("");
		System.out.println(stu.getName());
		System.out.println(stu.getId());
	}
}

